home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
dayquote
/
dayquote.doc
< prev
next >
Wrap
Text File
|
1994-12-05
|
26KB
|
744 lines
─────────── DayQuote ───────────
(c) 1994, 1995 Freeware Unlimited
──────────────────────────────────
Contents
──────────────────────────────────────────
■ Introduction . . . . . . . . . . . . . 2
■ Quote File Structure . . . . . . . . . 3
■ Command Line Options . . . . . . . . . 5
■ Result Messages . . . . . . . . . . . 8
──────────────────────────────────────────
╔═════════════════════════════════════════════════╗
║ He's dead, Jim. ║
║ - Bones ║
╚═════════════════════════════════════════════════╝
Page 1
────────────────────────────────────────────────────────────────────────────
■ INTRODUCTION
────────────────────────────────────────────────────────────────────────────
■ What DayQuote Is:
It is, to be perfectly honest, the first real program I have
written, and there might exist on some plane programmers who are
self-important enough to say that even this isn't a real program.
Nevertheless, I think you will enjoy it, and its many options.
Those hypothetical programmers I mentioned earlier might even
take a second glance at its versatile command line options.
All of those options are described below, in their totality.
The text is concise; hence, it might be 'thick' in some places.
Please, though, if you feel justified in your critique of my
writing - either in the English language or the BASIC language -
then I would welcome your comments by snail mail.
■ How It Works:
It takes what you have typed in following its name on the command
line and then acts on the information you have given to it.
Several things can take place from there, depending upon what
you gave to it in the form of 'switches' on the command line.
If it encounters '/?' anywhere, it will show the Help Screen,
then return you to the command line. If it encounters the '/D'
switch, it will go into an exclusive process similar to the '/?'
switch, except that it is more comprehensive in every respect.
See the section about Command Line Options for complete details
on these options, as well as the following ones.
Aside from those switches, there are nine other switches that
you can use to fully customize the look of your quotes. Two of
those will control the color of the text frame displayed, and two
others will determine how wide the frame will be. One of them
also allows you to place the frame starting at any line on your
screen, and there is another switch that will clear the screen
before doing so. Finally, there are three switches to choose
from that will control how the text of the quote is justified
within the frame; left- or right- or centered.
■ To Get More Information:
Type 'DAYQUOTE/$' on the command line and read about how you can
get free money sent to you, and a whole bunch of other free stuff.
Page 2
────────────────────────────────────────────────────────────────────────────
■ QUOTE FILE STRUCTURE
────────────────────────────────────────────────────────────────────────────
■ Quote file basics:
What follows between the funky lines is a representative sample
of a valid quote file.
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| Four score and seven years ago... |
| ~~Abraham Lincoln |
| |
| He's dead, Jim. |
| ~~Bones |
| |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
The basic philosophy behind it is to try grouping each body of
text as close as possible. Each distinct quote must be separated
by a minimum of two carriage returns (Enters), including the one
at the end of the previous quote's line. The picture again:
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
| Four score and seven years ago... |
| ~~Abraham Lincoln «» <──────────── carriage return 1 |
| «» <────────────────────────────── carriage return 2 |
| He's dead, Jim. |
| ~~Bones |
| |
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
If you slip up, though, and have, say, 42 carriage returns in there
by pure accident, don't sweat it. The program is fairly lax in
searching for quotes, aside from the one hard rule listed above.
It will ignore multiple spaces, as well as single carriage returns.
The text which is separated by at least two carriage returns is
considered the body of one quote, and will become one string of
text, each word separated by one space, that will be displayed
in accordance with any specified parameters, no matter how many
spaces are embedded within the quote. You could have 113 spaces
between just two words, and the quote will display as two words
separated by a single space. The rationale for this flexibility
is that sometimes we don't realize there are a whole bunch of
extra spaces at the end of a line, because we can't really SEE
them, so it just makes the program more forgiving of our own
imperfections.
Page 3
■ Creating your own quote file:
The best way to make a quote file is to use a 'text editor' or
a 'word processor'. If you use a word processor, make sure when
you save the file that you are saving it in 'pure ASCII', which
will mean unformatted text only, otherwise, you are apt to have
some very strange-looking quotes appearing on your screen, since
the word processor formatting codes that get added to the text
will probably not comply very much with the two-return rule.
It is best to just type the text in as you want it to read. Again,
how the text looks in the file will be irrelevant to how it is
displayed. All display aspects are controlled by the optional
command line switches, and all of those switches have defaults,
so you need not worry about the display aspects until later on,
when you are more familiar with the program's operation.
One worthy note here is that all quotes will be displayed in a
bordered rectangle, therefore it is not necessary to include
quotation characters in your quote file, unless you prefer the
look of them. (Future releases will allow custom frame borders.)
This documentation file was created originally by me using the
MS-DOS Editor, an easy-to use, standard ASCII text editor, and
it looked exactly as you see it now. If you wanted to, you could
try using this documentation file as your test quote file. Each
paragraph, since they are all separated by two carr